# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-python-engineio
_pkgname=python-engineio
pkgver=3.10.0
pkgrel=3
pkgdesc='Engine.IO server'
url='https://pypi.org/project/python-engineio/#files'
arch=('any')
license=('MIT')
depends=('python2' 'python2-six' 'python2-requests' 'python2-websocket-client'
         'python2-enum34')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('a1524083a8025f6c67539ceb0a10cc05d95abebe81d0d2ab56c5c2dabe1c5fd04e3d3002391f11747eac98b96db3d3e6c2357a66d9524b6b2d26a48afe595648')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" -O1 --prefix=/usr --skip-build

  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

